﻿using HCQ2_Model.DocModel;
using HCQ2_Model.DocModel.APIModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_IDAL
{
    public partial interface IT_DocEmpowerDAL
    {
        /// <summary>
        ///  获取文档授权列表
        /// </summary>
        /// <param name="powerName"></param>
        /// <param name="startDate"></param>
        /// <param name="endDate"></param>
        /// <param name="powerStatus"></param>
        /// <param name="page"></param>
        /// <param name="rows"></param>
        /// <returns></returns>
        List<EmpowerListModel> GetPowerListData(string powerName, string startDate, string endDate, int powerStatus, int page, int rows);
        /// <summary>
        ///  获取文档授权列表数量
        /// </summary>
        /// <param name="powerName"></param>
        /// <param name="startDate"></param>
        /// <param name="endDate"></param>
        /// <param name="powerStatus"></param>
        /// <param name="page"></param>
        /// <param name="rows"></param>
        /// <returns></returns>
        int GetPowerDataCount(string powerName, string startDate, string endDate, int powerStatus, int page, int rows);

        //**********************************************************接口**********************************************************
        /// <summary>
        ///  判断用户是否授权
        /// </summary>
        /// <param name="user_id"></param>
        /// <returns></returns>
        bool GetPowerCountByUser(int user_id);
        /// <summary>
        ///  获取授权列表
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        List<EmpowerAPPModel> GetPowerAPPList(EmpowerAPPParam param, int user_id);
        /// <summary>
        ///  获取授权列表数量
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        int GetPowerAPPCount(EmpowerAPPParam param, int user_id);
    }
}
